<include file="Layout/header" title="数据检索" />
<div class="row">
    <div class="col-md-8 col-md-offset-2">
        <form class="form-horizontal index" role="form" action="{:U('result')}" method="post" id="form_search">
            <div class="form-group col-md-6">
                <label class="col-md-4 control-label" for="yw2">印文</label>
                <div class="col-md-8">
                    <input class="form-control input-lg" data-val="true" data-val-required="请输入印文！" id="yw2" name="yw2" type="text" placeholder="请输入繁体印文！" />
                </div>
            </div>
            <div class="form-group col-md-6">
                <label class="col-md-4 control-label" for="shidai" style="font-size:16px;">年代暨作者</label>
                <div class="col-md-8">
                    <input class="form-control input-lg" id="shidai" name="shidai" type="text" placeholder="不填默认为全部！" />
                </div>
            </div>
            <div class="form-group col-md-6">
                <label class="col-md-4 control-label" for="zhulu">出处</label>
                <div class="col-md-8">
                    <input class="form-control input-lg" id="zhulu" name="zhulu" type="text" placeholder="不填默认为全部！" />
                </div>
            </div>
            <!--
            <div class="form-group col-md-6">
                <label class="col-md-4 control-label" for="yzm">验证码</label>
                <div class="col-md-8">
                    <input class="form-control input-lg" data-val="true" data-val-required="请输入验证码！" id="yzm" name="yzm" type="text" placeholder="请输入！" />
                    <img id="valiCode" style="cursor: pointer;" src="__CONTROLLER__/captcha" onclick="this.src='__CONTROLLER__/captcha/t/'+Math.random()" alt="验证码" title="看不清？换一个！" height="38" />
                </div>
            </div>
            -->
            <div class="form-group col-md-12">
                <p style="text-align:center;">
                    <input type="button" id="btn_submit" value="查询" class="btn btn-lg" />&nbsp;&nbsp;<input type="reset" value="重填" class="btn btn-lg" />
                </p>
            </div>
        </form>
    </div>
</div>
<script type="text/javascript">
    //jQuery代码
    $(function(){
        //给查看按钮绑定点击事件
        $('#btn_submit').on('click',function(){
            var yw2_value = $("#yw2").val();
            //var yzm_value = $("#yzm").val();
            //alert(yw2_value);
            if(!yw2_value){return false;}
            //if(!yzm_value){return false;}
            $('#form_search').submit();       
        });
    });
</script>
<include file="Layout/footer" />